/**
 *Classe ...
 */
 
import corejuliano.gameelement.world.*;
import rocknrollracing.phase.*;
import corejuliano.gameelement.*;
import corejuliano.*;

import corejuliano.designpattern.observer.*;
import corejuliano.designpattern.mvc.*;
import flash.geom.*;


import rocknrollracing.gameelement.*;
 
class rocknrollracing.gameelement.RocknRollRacingWorld extends Controller
{
	private var spacing:Number;
	private var width:Number;
	private var height:Number;
	
	public function RocknRollRacingWorld(id:String)
	{
		super(id);
	}

	public function getHeight():Number
	{
		return height;
	}

	public function setHeight(height:Number):Void
	{
		this.height = height;
	}

	public function getWidth():Number
	{
		return width;
	}

	public function setWidth(width:Number):Void
	{
		this.width = width;
	}
	
	public function getWorldTopDownCanvasGameElement():MovieClip
	{
		//pega as view do controller, ja queo troco e um controller :D
		for (var i:Number = 0; i < getViews().length; i++)
			if (getViews()[i] instanceof WorldTopDownGameElementView)
				return WorldTopDownGameElementView(getViews()[i]).getWorldTopDownCanvasGameElement();
	}
	
	public function toString(Void) : String 
	{
		return "rocknrollracing.gameelement.RocknRollRacingWorld";
	}

}